<%--
  Created by IntelliJ IDEA.
  User: MGL
  Date: 2020/10/12
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>角色列表</title>
    <link rel="stylesheet" type="text/css" href="../css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 部门中心 <span class="c-gray en">&gt;</span> 部门管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>

<div class="pd20">
    <div class="text-c">
        角色：
        <span>
            <select class="select" style="width: 150px" name="roleSelect" id="roleSelect" size="1">
                <option value="">--选择角色--</option>
                <c:forEach items="${roleList}" var="role">
                    <option value="${role.id}">${role.roleName}</option>
                </c:forEach>
            </select>
        </span>
        类型：
        <span>
            <select class="select" style="width: 150px" name="typeSelect" datatype="*" size="1">
                <option value="">--选择类型--</option>
<%--                <c:forEach items="" var="">--%>
<%--                    <option value=""></option>--%>
<%--                </c:forEach>--%>
            </select>
        </span>
        <button type="submit" class="btn btn-success radius" id="" name="">搜索</button>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
        <a href="javascript:;" onclick="authorizationEmp()" class="btn btn-primary radius">
            <i class="Hui-iconfont">
                &#xe600;
            </i>
            授权人员
        </a>
        <a href="javascript:;" onclick="authorizationMenu()" class="btn btn-primary radius">
            <i class="Hui-iconfont">
                &#xe600;
            </i>
            授权菜单
        </a>
        </span>
    </div>
    <div class="mt-6">
        <table class="table table-border table-bordered table-hover table-bg table-sort">

        </table>

        <jsp:include page="/view/commom/page.jsp"/>
    </div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="../js/H-ui.min.js"></script>
<script type="text/javascript" src="../js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../lib/datatables/1.10.15/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">

    function authorizationEmp() {
        var roleId=$("#roleSelect").val();


        if (roleId!=null&&roleId!=""){
            layer_show("授权人员","getRoleEmp?roleId="+roleId)
        }else {
            alert("请选择角色")
        }
    }

    function authorizationMenu() {
        var roleId=$("#roleSelect").val();


        if (roleId!=null&&roleId!=""){
            layer_show("授权菜单","toAuthorizationMenuZtree/"+roleId)
        }else {
            alert("请选择角色")
        }
    }

</script>
</body>
</html>